//
//  BoyeToken.h
//  bluebao
//
//  Created by boye_mac1 on 15/7/28.
//  Copyright (c) 2015年 Boye. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface BoyeToken : NSObject


//是否存在有效token
+(NSString *)isTokenEffective;

/**
 *  获取有效令牌
 *
 *  @param complete
 */
+(void)isTokenEffectiveComplete:(void(^)(NSString *  token))complete;

/**
 *  获取
 *
 *  @return 返回accessToken
 */
+(NSString *)getAccessToken;

/**
 *  清除token
 */
+(void)clearAccessToken;

//token请求
+(void) requestToken:(void (^)(NSString* reqToken))complete;



@end
